layui.use(['form', 'layedit', 'laydate','table'], function(){
  var table = layui.table
  ,laydate = layui.laydate
  ,form = layui.form
  ,layer = layui.layer
  ,layedit = layui.layedit;

  
  var $ = layui.$, active = {
		    reload: function(){
		      var comName = $('#comName');
		      var state = $('#StateSelect');
		      //执行重载
		      table.reload('manuTable', {
		        page: {
		          curr: 1 //重新从第 1 页开始
		        }
		        ,where: {
		        	comName: comName.val(),
		        	smState: state.val(),
		        }
		      });
		    }
		  };
		  
		  $('.demoTable .layui-btn').on('click', function(){
		    var type = $(this).data('type');
		    active[type] ? active[type].call(this) : '';
		  });
		  
		  
		

});
function load() {
	 var form = layui.form
	 form.render();
}